<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

<xi:include href="master.html" />

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title py:if="parent">${parent.title} | Yale Club Beijing</title>
    <title py:if="not parent">Upload | Yale Club Beijing</title>
    <script type="text/javascript">
    //<![CDATA[
    
    //]]>
    </script>
    <style type="text/css">
    h1{
        margin-bottom: 10px;
    }
    td{ vertical-align: top; }
    #filedesc{ height: 150px; }
    #file, #filetitle, #filedesc{
        width: 225px;
    }
    </style>
</head>
<body>
<h1 py:if="not parent">Upload</h1>
<h1 py:if="parent">Upload to ${parent.title}</h1>
<form action="upload" method="POST" enctype="multipart/form-data">
<table>
	<tr><td>File: </td><td><input type="file" name="file" id="file"/></td></tr>
	<tr><td>Title: </td><td><input name="title" id="filetitle"/></td></tr>
	<tr><td>Description: </td><td><textarea name="desc" id="filedesc"></textarea></td></tr>
	<tr py:if="setcover"><td colspan="2"><input type="checkbox" name="cover" value="1"/> Set as gallery cover</td></tr>
	<tr><td></td><td><input type="submit" value="Upload"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="Cancel"/></td></tr>
</table>
<input py:if="parent" type="hidden" name="parentid" value="${parent.id}"/>
</form>
</body>
</html>
